<template>
  <div class="add-content">
    <div class="fleetLeader">
      <div class="fleetLeader-title">车队长信息</div>
      <div class="fleetLeader-information">
        <el-form
          ref="form"
          :model="driverMasterOpinionForm"
          label-width="120px"
          style="margin-top: 10px;"
        >
          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="手机号：">
                <span>{{ driverMasterOpinionForm.mobile }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="12" />
          </el-row>

          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="身份证正面：">
                <img :src="supplyUrl(driverMasterOpinionForm.frontImg)" style="width: 80px; height: 80px;">

              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="身份证背面：">
                <img :src="supplyUrl(driverMasterOpinionForm.backImg)" style="width: 80px; height: 80px;">
              </el-form-item>
            </el-col>
          </el-row>

          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="姓名：">
                <span>{{ driverMasterOpinionForm.name }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="身份证：">
                <span>{{ driverMasterOpinionForm.identityCardId }}</span>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="车队名称：">
                <span>{{ driverMasterOpinionForm.motorcadeName }}</span>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="服务费率：">
                <span>{{ driverMasterOpinionForm.taxPoint }}</span>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
      </div>
    </div>
  </div>
</template>

<script>
import { driverMasterDetails } from '@/api/tms/driverMaster'
import { supplyUrl } from '@/api/common/file'
export default {
  data() {
    return {
      driverMasterOpinionForm: {},
      params: {}
    }
  },
  created() {
    this.params = this.$route.params
    this.detail()
  },
  methods: {
    supplyUrl,
    detail() {
      // console.log(data.id);
      driverMasterDetails(this.params.id).then((response) => {
        console.log('车队长详情', response)
        this.driverMasterOpinionForm = response
      })
    }
  }
}

</script>

<style>
  .hide .el-upload--picture-card {
    display: none;
  }
  .add-content {
    /* border: 1px solid red; */
    margin-right: 10px;
    margin-left: 10px;
    margin-top: 20px;
  }
  .fleetLeader-title {
    font-size: 17px;
    height: 30px;
    line-height: 30px;
    width: 10%;
    text-align: center;
    border-left: 3px solid #ff9900;
  }
  .fleetLeader-information {
    border: 1px solid #e4e4e4;
    margin-top: 10px;
    padding-bottom: 10px;
  }
  .audit-opinion {
    height: 30px;
    line-height: 30px;
    background-color: #ffcc99;
    color: #ff4400;
    text-align: center;
  }
</style>
